<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>简介</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.blenc.html">BLENC</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="blenc.setup.html">安装／配置</a></div>
 <div class="up"><a href="book.blenc.html">BLENC</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intro.blenc" class="preface">
  <h1 class="title">简介</h1>
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">此扩展是<em class="emphasis">实验性 </em>的。
此扩展的表象，包括其函数名称以及其他此扩展的相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本扩展风险自担 。</p></div>
  <p class="para">
   BLENC is a PHP source script protector that:
   <ul class="simplelist">
    <li class="member">
     Encodes your source code with the blowfish algorithm.
    </li>
    <li class="member">
     Allows transparent decryption and execution of PHP scripts previously
     encoded with BLENC.
    </li>
   </ul>
  </p>
  <p class="para">
   BLENC is an extension which hooks into the Zend Engine, allowing for
   transparent encryption and execution of PHP scripts using the blowfish
   algorithm. It is not designed for complete security (it is still possible to
   disassemble the script into op codes using a package such as XDebug), however
   it does keep people out of your code and make reverse engineering difficult.
  </p>
  <p class="para">
   In order to protect your PHP script you must encrypt each script with
   <span class="function"><a href="function.blenc-encrypt.html" class="function">blenc_encrypt()</a></span> function. After you can include the
   encoded script like the example below:
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000">/*&nbsp;PHP&nbsp;script&nbsp;encoded&nbsp;with&nbsp;BLENC&nbsp;*/<br /></span><span style="color: #0000BB">$my_source_encoded&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'my_source_encoded.phpe'</span><span style="color: #007700">;<br /><br />include(</span><span style="color: #0000BB">$my_source_encoded</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

  </p>
  <p class="para">
   BLENC supports also expiration time for the module. So, if you want deploy
   your source code with a expiration time, you have to compile the extension
   modifying the header file related to encryption and expiration time. Please
   see configuration section for further informations.
  </p>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.blenc.html">BLENC</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="blenc.setup.html">安装／配置</a></div>
 <div class="up"><a href="book.blenc.html">BLENC</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
